package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_DZZT"
 *     
*/
public class DmDzzt implements Serializable {

    /** identifier field */
    private String dzztDm;

    /** nullable persistent field */
    private String dzztMc;

    /** full constructor */
    public DmDzzt(String dzztDm, String dzztMc) {
        this.dzztDm = dzztDm;
        this.dzztMc = dzztMc;
    }

    /** default constructor */
    public DmDzzt() {
    }

    /** minimal constructor */
    public DmDzzt(String dzztDm) {
        this.dzztDm = dzztDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="DZZT_DM"
     *         
     */
    public String getDzztDm() {
        return this.dzztDm;
    }

    public void setDzztDm(String dzztDm) {
        this.dzztDm = dzztDm;
    }

    /** 
     *            @hibernate.property
     *             column="DZZT_MC"
     *             length="30"
     *         
     */
    public String getDzztMc() {
        return this.dzztMc;
    }

    public void setDzztMc(String dzztMc) {
        this.dzztMc = dzztMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("dzztDm", getDzztDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmDzzt) ) return false;
        DmDzzt castOther = (DmDzzt) other;
        return new EqualsBuilder()
            .append(this.getDzztDm(), castOther.getDzztDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getDzztDm())
            .toHashCode();
    }

}
